package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "user")
@ApiModel(description = "用户表")
public class User implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @TableField(value = "dept_id")
    @ApiModelProperty(value = "部门编号")
    private Integer deptId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "加密")
    private String salt;

    @ApiModelProperty(value = "工号")
    private String badge;

    @ApiModelProperty(value = "真实名字")
    private String realname;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "电话")
    private String tel;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @TableField(value = "job_title")
    @ApiModelProperty(value = "职位名称")
    private String jobTitle;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建者")
    private Integer createBy;

    @ApiModelProperty(value = "入职时间")
    private String hiredate;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "逻辑删除（1：已删除 0：未删除）")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备用2")
    private String by2;
}
